<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <p>123</p>
  <script>
    console.dir(document.getElementsByTagName('p')[0])
    class Person {
      constructor(name, age) {
        this.name = name
        this.age = age
      }
      getAge() {
        return this.age
      }
      getName() {
        return this.name
      }
    }
    class Man extends Person {
      constructor(name = 'wcx', age = '26') {
        super(name, age)
        this.gender = '1'
      }
      getGender() {
        return this.gender
      }
    }
    const m = new Man()
    console.log(m.__proto__ === Man) // true
    console.log(m.__proto__.__proto__ === Person) // true
  </script>
</body>
</html>